import asyncComponent from '../components/AsyncComponent'

const Qrcode = asyncComponent(() => import('../pages/Qrcode'))
const Translate = asyncComponent(() => import('../pages/Translate'))
const Markdown = asyncComponent(() => import('../pages/Markdown'))
const About = asyncComponent(() => import('../pages/About'))
const ScreenHot = asyncComponent(() => import('../pages/ScreenHot'))

export default [
  {
    path: '/Qrcode',
    name: '二维码',
    component: Qrcode,
    meta: {
      icon: 'crop_free'
    }
  },
  {
    path: '/ScreenHot',
    name: '截图',
    component: ScreenHot,
    meta: {
      icon: 'aspect_ratio'
    }
  },
  {
    path: '/Markdown',
    name: 'Markdown',
    component: Markdown,
    meta: {
      icon: 'border_color'
    }
  },
  {
    path: '/Translate',
    name: '翻译',
    component: Translate,
    meta: {
      icon: 'book'
    }
  },
  {
    path: '/about',
    name: '关于',
    component: About,
    meta: {
      icon: 'info'
    }
  }
]
